home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
perl
/
jinx.lha
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-08-13
|
3KB
|
123 lines
##################################################
# directories and modes
##################################################
PERLLIB=/local/usr/lib/perl
BINDIR=/usr/staff/bin
LIBMODE=755
BINMODE=755
##################################################
# programs used
##################################################
NROFF=nroff
TROFF=lroff
LATEX=latex
GREP=grep
UNDUMP=undump
PATH_NAME_PERL=/local/bin/perl
##################################################
# for author only
##################################################
SHAR=shar
COMPRESS=/usr/ucb/compress
SHELL=/bin/sh
BCKDIR=../back
ARCH=escudo
FTPDIR=/users/ftp/UNIX
JINX=jinx.2.1
FTPMODE=644
SHS=Jjoin Jlist Jproject Jreport Jsort
PLS=jinx.shell jinx.pl curses.pl menus.pl screen.pl
MAN=jinx.1
DOC=jinx.tex
TOOLS=testCurses
ALL=README Makefile jinx Jtools ${PLS} ${SHS} ${MAN} ${DOC}
any:
@echo 'Usage: make dump-install'
@echo 'or: make install'
@echo 'or: make doc'
@echo 'or: make man'
@echo 'or: make clean'
@echo 'or: make realclean'
dump-install: jinx.dump tool.dump
cd ${BINDIR} ; if test -f jinx ; then mv -f jinx jinx.old ; fi
cp jinx.dump ${BINDIR}/jinx
cp tool.dump ${BINDIR}
for i in ${SHS} ;\
do ln -f ${BINDIR}/tool.dump ${BINDIR}/$$i ;\
done
cd ${BINDIR} ; chmod ${BINMODE} jinx tool.dump
cp jinx ${PLS} ${PERLLIB}
cd ${PERLLIB} ; chmod ${LIBMODE} jinx ${PLS}
cd ${BINDIR} ; rm -f jinx.old tool.dump
@echo install man page jinx.1 by hand
install:
cp jinx ${SHS} ${BINDIR}
cd ${BINDIR} ; chmod ${BINMODE} jinx ${SHS}
cp jinx ${PLS} ${PERLLIB}
cd ${PERLLIB} ; chmod ${LIBMODE} jinx ${PLS}
rm -f ${BINDIR}/jinx.old
@echo install man page jinx.1 by hand
jinx.dump: jinx.core
${UNDUMP} jinx.dump ${PATH_NAME_PERL} jinx.core
jinx.core:
rm -f core
-${PATH_NAME_PERL} jinx -D
mv core jinx.core
tool.dump: tool.core
${UNDUMP} tool.dump ${PATH_NAME_PERL} tool.core
tool.core:
rm -f core
-${PATH_NAME_PERL} Jtools -D
mv core tool.core
clean:
rm -f jinx.nr jinx.tr core jinx.core jinx.dump tool.core tool.dump
rm -f jinx.log jinx.dvi
realclean: clean
rm -f ${JINX}.shar ${JINX}.shar.Z
rm -f ${JINX}.ps ${JINX}.ps.Z
rm -f jinx.aux jinx.toc
man: jinx.nr jinx.tr
jinx.nr: jinx.1
${NROFF} -man jinx.1 > jinx.nr
jinx.tr: jinx.1
${TROFF} -man jinx.1 > jinx.tr
doc: jinx.dvi
jinx.dvi: jinx.tex
-${LATEX} jinx
-if ${GREP} Rerun jinx.log ; then ${LATEX} jinx ; fi
-if ${GREP} Rerun jinx.log ; then ${LATEX} jinx ; fi
##################################################
# for author only
##################################################
show: jinx.nr
col < jinx.nr | expand | more
${JINX}.ps.Z: jinx.dvi
dvi2ps -r jinx.dvi > ${JINX}.ps
rm -f ${JINX}.ps.Z
${COMPRESS} -v ${JINX}.ps
${JINX}.shar.Z: shar
shar:
rm -f ${JINX}.shar ${JINX}.shar.01 ${JINX}.shar.Z
${SHAR} -o ${JINX}.shar ${ALL}
if test -f ${JINX}.shar.01 ; then mv ${JINX}.shar.01 ${JINX}.shar ; fi
${COMPRESS} -v ${JINX}.shar
backup: ${JINX}.shar.Z
cp ${JINX}.shar.Z ${TOOLS} ${BCKDIR}
arch: ${JINX}.shar.Z ${JINX}.ps.Z
rcp ${JINX}.shar.Z ${JINX}.ps.Z ${ARCH}:${FTPDIR}
rsh ${ARCH} chmod ${FTPMODE} ${FTPDIR}/${JINX}.shar.Z
rsh ${ARCH} chmod ${FTPMODE} ${FTPDIR}/${JINX}.ps.Z
ctest:
@${PATH_NAME_PERL} testCurses jinx curses.pl screen.pl
wc:
@wc ${ALL}